﻿using System;
using System.Collections.Generic;
using SobrietyEngine.Guids;

namespace SobrietyEngine.Events.Component
{
    public class HealthChanged: BaseEventData
    {
        public CGuid Who { get; private set; }
        public CGuid ByWho { get; private set; }
        public float Amount { get; private set; }
        public float TotalHealth { get; private set; }

        public HealthChanged(CGuid who, float amount, float total, CGuid byWho)
            : base()
        {
            Who = who;
            ByWho = byWho;
            Amount = amount;
            TotalHealth = total;
        }

        public HealthChanged(CGuid who, float amount, float total)
            : base()
        {
            Who = who;
            ByWho = null;
            Amount = amount;
            TotalHealth = total;
        }
    }
}
